<template>
  <!-- 面积图 -->
  <div ref="main" style="width: 100%; height: 500px"></div>
</template>

<script>
import * as echarts from 'echarts';
export default {
  mounted() {
    const myChart = echarts.init(this.$refs.main);
    const option = {
      xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
      },
      yAxis: {
        type: 'value',
      },
      series: [
        {
          data: [200, 932, 901, 934, 1290, 1330, 1320],
          type: 'line',
          areaStyle: {},
        },
      ],
    };
    myChart.setOption(option);
  },
};
</script>

<style></style>
